{layout name="p/base"}
    <div class="row">
      <div class="col-lg-12">
        <h1>会员管理 <small>会员信息编辑</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="/user/userlist"><i class="fa fa-dashboard"></i> 会员列表信息</a></li>
          <li class="active"><i class="fa fa-table"></i> 会员信息编辑</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          请准确编辑会员信息
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <!-- 选项卡start -->
      <div class="bs-example">
      	<!-- 选项卡标题start -->
        <ul class="nav nav-tabs" style="margin-bottom:15px;">
          <li class="active">
            <a href="#one" data-toggle="tab">会员信息</a>
          </li>
          <li>
            <a href="#two" data-toggle="tab">联系人信息</a>
          </li>
        </ul>
        <!-- 选项卡标题end -->
        <!-- 选项卡内容start -->
        <div id="myTabContent" class="tab-content">
          <!-- 选项卡内容1会员类型start -->
          <div id="one" class="tab-pane fade active in">
            <!-- 基本信息start -->
            <div class="col-lg-10">
              <!-- 会员信息start -->
              <form class="form-horizontal" role="form" action="" method="post">
                  <div class="form-group">
                    <label class="control-label col-sm-2">账号</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" value="{$userinfo.mobile}" name="mobile" placeholder="85468585@qq.com" readonly>
                    </div>
                    <label class="control-label col-sm-2">昵称</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" value="{$userinfo.nickname}" name="" placeholder="请填写昵称" readonly>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-sm-2">姓名</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="name" value="{$userinfo.real_name}" readonly>
                    </div>
                    <label class="control-label col-sm-2">身份证号</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" value="{$userinfo.idnumber}" name="number"  placeholder="" readonly>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-sm-2">性别</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="name" value="{$userinfo.sex}" readonly>
                    </div>
                    <label class="control-label col-sm-2">生日</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="number" value="{$userinfo.birthday}"  placeholder="1990-01-20" readonly>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-sm-2">手机号码</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="mobile" value="{$userinfo.phone}" readonly>
                    </div>
                    <label class="control-label col-sm-2">邮箱地址</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="email" value="{$userinfo.email}" readonly>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-sm-2">固定电话</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="" value="{$userinfo.telephone}" readonly>
                    </div>
                    <label class="control-label col-sm-2">通讯地址</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" name="address" value="{$userinfo.address}" readonly>
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="control-label col-sm-2">关联营地</label>
                    
                    <div class="col-sm-4">
                      <input class="form-control" type="text" value="{$userinfo.camps.name}"   readonly>
                    </div>
                    
                    <label class="control-label col-sm-2">泊位编号</label>
                    
                    <div class="col-sm-4">
                      <input class="form-control" type="text" value="{$userinfo.park_num}"   readonly>
                    </div>
                    
                  </div>
                  <div class="form-group ">
                    <label class="control-label col-sm-2">关联房车</label>
                    
                    <div class="col-sm-4">
                      <input class="form-control" type="text" value="{$caravan_name}"   readonly>
                    </div>
                    
                    <label for="firstname" class="control-label col-sm-2">会员类型</label>
                    <div class="col-sm-4">
                      <input class="form-control" type="text" value="{$userinfo.status}"   readonly>
                    </div>
                  </div>
                  <div class="form-group">
                    <label for="firstname" class="control-label col-sm-2">会员头像</label>
                    <div class="col-sm-4">
                      <img width="60" src="{$userinfo.head}" />
                    </div>
                  </div>
                  <div class="modal-footer">
                    <input type="button" value="返回" class="btn btn-default"  onclick="javascript:history.back(-1);" />
                  </div>
              </form>
              <!-- 会员信息end -->
            </div>
            <!-- 基本信息end -->
          </div>
          <!-- 选项卡内容1会员类型end -->
          <!-- 选项卡内容2级别start -->
          <div id="two" class="tab-pane fade">
            <!-- 基本信息start -->
            <div class="col-lg-12">
              <div class="panel panel-default">
                <div class="panel-heading ">
                  <h3 class="panel-title">
                    联系人信息
                  </h3>
                </div>
                <div class="panel-body">
                  <!-- 表start -->
                  <div class="table-responsive">
                    <table class="table table-bordered table-hover table-striped tablesorter">
                      <thead>
                        <tr>
                          <th>姓名</i></th>
                          <th>证件类型</th>
                          <th>证件号码</th>
                          <th>联系电话</th>
                          <th>邮箱地址</th>
                        </tr>
                      </thead>
                      <tbody>
                      {volist name='contactioninfo' id='vo'}
                        <tr>
                          <td>{$vo.name}</td>
                          <td>{$vo.type}</td>
                          <td>{$vo.type_number}</td>
                          <td>{$vo.phone}</td>
                          <td>{$vo.email}</td>
                        </tr>
                      {/volist}
                      </tbody>
                    </table>
                  </div>
                  <!-- 表end -->
                </div>
              </div>
            </div>
            <!-- 基本信息end -->
          </div>
          <!-- 选项卡内容2级别end -->
        </div>
        <!-- 选项卡内容end -->
      </div>
      <!-- 选项卡end -->
    </div>